//
//  SPUserInfoModel.m
//  BaseProject
//
//  Created by Sailer Guo on 2019/12/29.
//  Copyright © 2019 Beijing Shopin Retail Development Co., Ltd. All rights reserved.
//

#import "SPUserInfoModel.h"

static NSString *kPersonMessage = @"kPersonMessage";

@implementation SPUserInfoModel

@synthesize personProfileModel = _personProfileModel;

//- (instancetype)init {
//    if (self = [super init]) {
//        NSUserDefaults *userDefault = [NSUserDefaults standardUserDefaults];
//        NSString *json = [userDefault objectForKey:kPersonMessage];
//        if (json) {
//            SPPersonProfileModel *person = [SPPersonProfileModel mj_objectWithKeyValues:json];
//            _personProfileModel = person;
//        }
//    }
//    return self;
//}

+ (NSDictionary *)mj_replacedKeyFromPropertyName {
    return @{@"memberSid":@"sid"};
}
//
//- (void)setPersonProfileModel:(SPPersonProfileModel *)personProfileModel {
//    NSUserDefaults *userDefault = [NSUserDefaults standardUserDefaults];
//    if ([userDefault objectForKey:kPersonMessage]) {
//        [userDefault removeObjectForKey:kPersonMessage];
//    }
//    NSString *personInfo = [personProfileModel mj_JSONString];
//    [userDefault setObject:personInfo forKey:kPersonMessage];
//    _personProfileModel = personProfileModel;
//    [userDefault synchronize];
//}
//
//- (SPPersonProfileModel *)personProfileModel {
//    return _personProfileModel;
//}

@end
